﻿
using System;
namespace YmtRpc.Domain
{
    /// <summary>
    /// 服务元数据的实体类
    /// </summary>
    public class ServiceMetadata
    {
        /// <summary>
        /// 应用编号
        /// </summary>
        public string AppId { get; set; }
        /// <summary>
        /// 接口名称
        /// </summary>
        public string ApiName { get; set; }
        /// <summary>
        /// 域名
        /// </summary>
        public string Host { get; set; }
        /// <summary>
        /// 接口地址
        /// </summary>
        public string ApiPath { get; set; }
        /// <summary>
        /// http方法
        /// </summary>
        public string HttpMethod { get; set; }

        /// <summary>
        /// 接口的用途描述
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 接口的拥有者
        /// </summary>
        public string Owner { get; set; }

        /// <summary>
        /// 数据创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 最后一次更新时间
        /// </summary>
        public DateTime LastUpdateTime { get; set; }
        /// <summary>
        /// 最后一次更新时间刻度，用来做与服务器端的数据同步
        /// </summary>
        public long LastUpdateTicks { get; set; }
    }
}
